package com.sky.loveshop.entity.meiTuan;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author xcy
 * @version V1.0
 * @description 创建美团订单返回结果
 * 外送帮 https://www.waisongbang.com/apiDoc/#/order/list?v=1.2.4
 * @date 2024/9/2 23:21
 */
@NoArgsConstructor
@Data
public class MtOrderCreateResponse {

    @JsonProperty("code")
    private Integer code;
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("data")
    private Object data; // MtOrderCreateResponseData

    public Boolean isSuccess() {
        return code.equals(0);
    }


}
